﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProductSystem.BLL.Common
{
    public class LoginUser
    {
        //帐号ID
        private int _userId;
        //用户类型ID
        private int _userTypeId;
        //用户名称
        private string _name;
        //帐号
        private string _account;
        //帐号类别
        private int _accountType;
        //密码
        private string _password;
        //登录ip
        private string _loginIp;
        //登录时间
        private DateTime _loginTime;
        //系统参数设置年份
        private int _year;
        //系统参数设置地区
        private string _regional;
        //用户角色Id
        private int _roleId;

        //集团版
        public int IsCorporation { get; set; }

        /// <summary>
        /// 帐号ID
        /// </summary>
        public int UserId
        {
            get { return _userId; }
            set { _userId = value; }
        }

        /// <summary>
        /// 用户类别ID
        /// </summary>
        public int UserTypeId
        {
            get { return _userTypeId; }
            set { _userTypeId = value; }
        }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }
        /// <summary>
        /// 帐号
        /// </summary>
        public string Account
        {
            get
            {
                return _account;
            }
            set
            {
                _account = value;
            }
        }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password
        {
            get
            {
                return _password;
            }
            set
            {
                _password = value;
            }
        }
        /// <summary>
        /// 登录IP
        /// </summary>
        public string LoginIp
        {
            get
            {
                return _loginIp;
            }
            set
            {
                _loginIp = value;
            }
        }
        /// <summary>
        /// 登录时间
        /// </summary>
        public DateTime LoginTime
        {
            get { return _loginTime; }
            set { _loginTime = value; }
        }

        /// <summary>
        /// 帐号类别
        /// </summary>
        public int AccountType
        {
            get
            {
                return _accountType;
            }
            set
            {
                _accountType = value;
            }
        }

        /// <summary>
        /// 系统参数设置年份
        /// </summary>
        public int Year
        {
            get
            {
                return _year;
            }
            set
            {
                _year = value;
            }
        }

        /// <summary>
        /// 系统参数设置地区
        /// </summary>
        public string Regional
        {
            get
            {
                return _regional;
            }
            set
            {
                _regional = value;
            }
        }

        /// <summary>
        /// 用户角色Id
        /// </summary>
        public int RoleId
        {
            get
            {
                return _roleId;
            }
            set
            {
                _roleId = value;
            }
        }
    }
}
